import React, { Component } from 'react'

export default class Child extends Component {
    state = {
        // users: [
        //     { id: 1, name: 'lala', age: 18 },
        //     { id: 2, name: 'lili', age: 18 },
        //     { id: 3, name: 'lulu', age: 18 },
        // ],
        users: '22'
    }
    render() {
        return (
            <div>
                <h3>I am Child</h3>
                {
                    this.state.users.map(user => (<h4 key={user.id}>{user.name} -- {user.age}</h4>))
                }
            </div>
        )
    }
}
